package com.iwe3.protal.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class UserEntity {

    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private String account;
    private String password;
    private String nickname;
    private String realname;
    private String mobile;
    private String email;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private LocalDateTime createtime;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private LocalDateTime updatetime;
    private Integer state;

}
